how africa was divided into countries